//
//  PhotoBrowserService.swift
//  Health-Doctor
//
//  Created by 勇胡 on 2022/7/7.
//  Copyright © 2022 掌上卫健. All rights reserved.

//解耦，通用 照片浏览器 组件 照片查看器

import Foundation
import UIKit

class PhotoBrowserService : NSObject{
    
    
    ///显示图片 方式2
    public func show(_ index:Int,_ imgs:[UIImage],dismissBlock: (()->())? = nil){
        let vc = BaseImageBrowserVC()
        vc.onWillDismissBlock = dismissBlock
        vc.show(imgList: imgs,index: index)
    }
}
